package com.itheima.domain.db;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class Acoustic implements Serializable {

    //id
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    private Long userId;

    //地址
    private String address;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date created;

    private Integer pickup=0;  //是否拾取

    private Long pickupUserId;  //拾取人

    private Date pickupDateTime;
}
